package com.john.booter.module.option.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.john.booter.domain.entity.Option;
import com.john.booter.module.option.dao.OptionDao;
import com.john.booter.module.option.service.OptionService;
import com.john.booter.pagination.DataTable;
import com.john.booter.pagination.Pager;

@Service
public class OptionServiceImpl implements OptionService {
	
	@Autowired
	private OptionDao dao;

	@Transactional
	@Override
	public void deleteAll() {
		dao.deleteAll();
	}
	
	@Transactional
	@Override
	public void batchMerge(List<Option> options) {
		dao.batchMerge(options);
	}

	@Transactional
	@Override
	public void deleteByCodes(List<String> codes) {
		dao.deleteByCodes(codes);
	}

	@Override
	public DataTable<Option> findDataTable(Pager pg) {
		// TODO Auto-generated method stub
		return null;
	}

}
